Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / ValidationProvider Class / Validate Method / Validate(Object,Boolean,Object[]) Method
The component to validate.
true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.
An array containing types of components and/or specific component instances to be ignored, along with their children components. When a a null reference (Nothing in Visual Basic) is passed, validation will occur on all component types.


Validate(Object,Boolean,Object[]) Method
Validates the component and all of its child components, but excludes specified types of components.
Syntax
'Declaration
 
Public Overloads Function Validate( _
   ByVal component As Object, _
   ByVal validateHidden As Boolean, _
   ByVal ParamArray ignoredComponents() As Object _
) As Boolean
 
'Usage
 
Dim instance As ValidationProvider
Dim component As Object
Dim validateHidden As Boolean
Dim ignoredComponents() As Object
Dim value As Boolean
 
value = instance.Validate(component, validateHidden, ignoredComponents)

Parameters

component
The component to validate.
validateHidden
true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.
ignoredComponents
An array containing types of components and/or specific component instances to be ignored, along with their children components. When a a null reference (Nothing in Visual Basic) is passed, validation will occur on all component types.

Return Value

Returns true if components are valid; false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also